import { defineStore } from 'pinia'

export const useWebsocketStore = defineStore('websocket', {
  state: () => {
    return {
      websocketConnect: false,
      messageValue: 0
    }
  },
  actions: {
    changeWebsocket (status) {
      this.websocketConnect = status
    },
    changeMessage (number) {
      this.messageValue = number
    }
  }
})
